#pragma once
#include "TesTCharSupport.h"


#ifdef WIN32
#include <Windows.h>
#include <cstdlib>
#endif


inline void TesDefaultErrorHandler( const tstring & message )
{
#ifdef WIN32
	int result = MessageBox( NULL, message.c_str(), t("TES Error"), MB_ICONERROR | MB_ABORTRETRYIGNORE );
	switch( result )
	{
	case IDABORT:
		exit( 1 );
		break;
	case IDRETRY:
		__asm int 3;
		break;
	case IDIGNORE:
		break;
	}
#else
	tcout << message << endl;
#endif
}